package demo3;

/**
 * Author：毕龙
 * Date: 2024/5/12 11:05
 */
public class TestSalf {
    public static void main(String[] args) {
        Student s1 = new Student("chenkai", 18);
        Student s2 = new Student();
        s2.setName("wangwei");
        s2.setAge(0);
        s2.setScore(0);
        System.out.println(s1);
        System.out.println(s2);
        Student1 s3 = new Student1("hengbo", 19, 123.0);
        Student1 s4 = new Student1("haibing");

        System.out.println(s3);
        System.out.println(s4);
    }
}
